package com.aeye.mbr.upms.rpc.service.impl;

import com.aeye.mbr.common.result.BootstrapTableParams;
import com.aeye.mbr.common.result.BootstrapTableResult;
import com.aeye.mbr.upms.common.constant.UpmsCacheConstants;
import com.aeye.mbr.upms.dao.model.UpmsParam;
import com.aeye.mbr.upms.rpc.api.UpmsApiService;
import com.aeye.mbr.upms.rpc.api.UpmsOrganizationService;
import com.aeye.mbr.upms.rpc.api.UpmsParamService;
import com.aeye.mbr.upms.rpc.api.UpmsSystemService;
import com.aeye.mbr.upms.rpc.mapper.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * UpmsApiService实现
 * Created by shuaeye.mbr on 2016/01/19.
 */
@Service
public class UpmsParamServiceImpl implements UpmsParamService {

    private static Logger _log = LoggerFactory.getLogger(UpmsParamServiceImpl.class);

    @Autowired
    private UpmsParamMapper upmsParamMapper;

    @Override
    public BootstrapTableResult<UpmsParam> selectUpmsParamByParams(BootstrapTableParams params) {
        return null;
    }

    @Override
    public UpmsParam getUpmsParamByName(String parmaName) {
        UpmsParam p = new UpmsParam();
        p.setParamName(parmaName);
        return upmsParamMapper.selectOne(p);
    }

    @Override
    public List<UpmsParam> getAllUpmsParams() {
        return upmsParamMapper.selectAll();
    }
}